Skip to content

Svelte framework integration (similar to React/Solid) #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
schickling opened this issue May 20, 2025 · 8 comments
Open

Svelte framework integration (similar to React/Solid) #315

schickling opened this issue May 20, 2025 · 8 comments

Comments

@schickling
Copy link
Collaborator

It would be great to have a Svelte integration for LiveStore, similar to the existing React and Solid integrations. This would make it much easier for Svelte developers to use LiveStore in their projects and would help broaden the adoption of the library.

Additionally, Rich Harris (creator of Svelte) has mentioned that he might be interested in helping with the creation of a Svelte adapter, which could be a great opportunity to collaborate and ensure the integration is idiomatic for Svelte users.

Would love to discuss what an ideal Svelte integration would look like and how we can get started!

@schickling schickling added the enhancement New feature or request label May 20, 2025
@didier
Copy link

didier commented May 27, 2025

https://github.com/get-convex/convex-svelte/tree/main Convex has a decent implementation for Svelte, maybe there's something we can learn there

@elliott-with-the-longest-name-on-github

Hi @schickling -- I'm one of the Svelte Core maintainers working with Rich at Vercel. I'm taking a look into the source for the React and Solid integrations and will noodle on some ideas for a Svelte one. Get back to you soon! 🚀

@schickling
Copy link
Collaborator Author

schickling commented May 27, 2025

Very excited to hear @elliott-with-the-longest-name-on-github! Let me know if you need any help!

@elliott-with-the-longest-name-on-github

FWIW documentation of what "contract" the client has to fulfill would be really helpful! I'm kinda working backwards from the docs and React/Solid libs, but a lot of what I'm figuring out is inference.

@idan
Copy link

idan commented May 28, 2025

Also adding @stolinski's https://github.com/stolinski/zero-svelte as some maybe-helpful prior art here, since he went on the same journey to build svelte 5 bindings for zero based on the existing react bindings

@schickling
Copy link
Collaborator Author

@elliott-with-the-longest-name-on-github I'd suggest we try to coordinate next steps in detail via Discord. In order to make sure the Svelte integration covers all scenarios, we should work on #326 in parallel.

@schickling schickling added integration:svelte and removed enhancement New feature or request labels May 29, 2025
@verioussmith
Copy link

Wow, I guess I am early enough to not be able to use this with my app since my app is being built in Svelte. Is there anyone actually doing this without direct Svelte Integration yet? Like a temporary Svelte bridge?

@elliott-with-the-longest-name-on-github

@verioussmith it's not too hard, I would suggest looking at the web components / solid examples! You can wire everything up yourself without too much trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants